LanguageModelTool

data class LanguageModelTool(val name: String, val description: String, val parametersSchemaJson: String, val providerExecuted: Boolean = false, val metadata: Map<String, JsonElement> = emptyMap(), val strict: Boolean = true, val providerOptions: Map<String, JsonElement> = emptyMap())

Tool advertisement at the model surface — the JSON-schema shape the provider needs. Distinct from the application-side Tool which carries a Kotlin executor; this is the wire shape that crosses into a provider.

Constructors

Link copied to clipboard
constructor(name: String, description: String, parametersSchemaJson: String, providerExecuted: Boolean = false, metadata: Map<String, JsonElement> = emptyMap(), strict: Boolean = true, providerOptions: Map<String, JsonElement> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
val metadata: Map<String, JsonElement>
Link copied to clipboard
Link copied to clipboard
val parametersSchema: JsonElement

Parsed once and cached — not a constructor arg, so not serialized.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val providerOptions: Map<String, JsonElement>

Provider-specific config sent to the model for this tool (upstream's tool.providerOptions).

Link copied to clipboard